/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package swym.protocol;

/**
 *
 * @author mschaefer
 */
public class ConfirmActionMessage extends ActionMessage
{
    private int returnCode;
    private String errorMessage;
    
    public ConfirmActionMessage( String user, String client, int requestID )
    {
        super( user, client, ActionMessage.TYPE_CONFIRM, requestID );
        
        returnCode = 0;
        errorMessage = "";
    }
    
    public void setReturnCode( int code )
    {
        returnCode = code;
    }
    
    public void setErrorMessage( String message )
    {
        errorMessage = message;
    }
    
    public int getReturnCode() { return returnCode; }
    public String getErrorMessage() { return errorMessage; }
}
